<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var obj1 =new Object();
			var str1=new String('123');
			console.log(obj1.constructor);
			console.log(str1.constructor);//native code--表示该函数的代码是内置的
			
			function Person (name,age) {
				this.name=name;
				this.age=age;
				this.sayHi=function() {
				console.log('Hi,My name is'+this.name);	
				};
			}
			var p1=new Person('jack',18)
			console.log(p1.constructor);
			console.log(p1);
			p1.sayHi()
		</script>
	</body>
</html>
